package com.dd.stack.mybatisplus.controller.oracle;

import com.dd.stack.common.util.response.ApiResponse;
import com.dd.stack.mybatisplus.pojo.DO.oracle.EmployeeOracleDO;
import com.dd.stack.mybatisplus.service.inner.impl.oracle.EmployeeOracleServiceImpl;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @Author liuxianmeng
 * @CreateTime 2025/10/29 3:42
 * @Description 类功能作用说明
 */
@Slf4j
@RestController
@RequiredArgsConstructor
@RequestMapping("/oracle")
@Api(tags = "EmployeeOracle单表操作")
public class EmployeeOracleController {

    private final EmployeeOracleServiceImpl employeeOracleService;

    @PostMapping("/list-all")
    @ApiOperation("DataObjectDO多条件范围分页查询")
    public ApiResponse<List<EmployeeOracleDO>> listAll(){
        List<EmployeeOracleDO> list = employeeOracleService.list();
        log.info("C EmployeeOracleController M listAll().. => {}", list);
        return ApiResponse.success(list);
    }
}
